package com.consumer._03_delay;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Component
@RocketMQMessageListener(
        topic = "boot-delay",
        consumerGroup = "spring-boot-consumer-demo3"
)
public class Consumer4 implements RocketMQListener<String> {

    @Override
    public void onMessage(String message) {
        System.out.println("消费的内容:" + message);
    }
}